/*
 * Created by Ben Kahn on 3/10/09
 */

package client.engine;

public class KeepAlive extends Thread {

	private ChatEngine engine;
	
	public KeepAlive(ChatEngine e)
	{
		engine = e;
	}
	
	public void run()
	{
		while(engine.isOnline())
		{
			engine.stillOnline();
			try{
			Thread.sleep(100000); //Arbitrarily determined number of milliseconds
			}catch(InterruptedException e)
			{
				e.printStackTrace();
			}
		}
	}
}
